import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class LeerFichero {
	public static void main(String args[])
	{
		if(args.length < 1) help();
		BufferedReader br=null;
		try {
			br = (new BufferedReader(new FileReader(new File(args[0]))));
		} catch (FileNotFoundException e) {
				help();
		}
		String line;
		try {
			while((line = br.readLine()) != null){
			System.out.println(line);
			}
		} catch (IOException e) {
		e.printStackTrace();
		System.exit(1);
		}
	}

	public static void help(){
		System.out.println("uso: java LeerFichero FICHERO");
		System.exit(0);
	}

}
